home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilfile
/
rw2ent15.lha
/
Raw2Ent.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-09-06
|
1KB
|
49 lines
/* Raw2Ent by Tamio Patrick Honma for HHU CWIS-Project
$VER:1.4.1 (14.07.96) [ARexx-Script]
$VER:1.1.2 (06.09.96) [Assembler-Routine]
*/
/* Change the following directory to your own directory: */
dir='CWIS:Scripts/'
/* Don't change the following code */
options results
options cache
parse arg source destination tag
filename=source
s1=REVERSE(source)
n=VERIFY(s1,':/','m')
IF n>0 THEN DO
filename=REVERSE(LEFT(s1,n-1))
END
say 'Filename = '||filename
say 'Source = '||source
IF RIGHT(destination,1)='/' | RIGHT(destination,1)=':' THEN destination=destination||filename||'.ent'
ELSE destination=destination||'.ent'
say 'Destination = '||destination
tag=UPPER(tag)
IF tag='' THEN DO
IF open('env','ENV:cwis/'||filename,'r') THEN DO
tag=UPPER(readln('env'))
close('env')
say(tag)
END
END
say 'starting Raw2Ent-Routine - please stand by! Timer set to '||TIME('R')
address command dir||'Raw2Ent '||source||' '||destination||' '||tag
say 'routine took '||TIME('E')||' seconds'
address command 'setenv cwis/'||filename||' TAG'
address command 'copy env:cwis/ envarc:cwis/ all'
say('ENV:'||filename)